<?php 
/* SVN FILE: $Id$ */
/* UserType Test cases generated on: 2010-02-13 15:11:23 : 1266066683*/
App::import('Model', 'UserType');

class UserTypeTestCase extends CakeTestCase {
	var $UserType = null;
	var $fixtures = array('app.user_type');

	function startTest() {
		$this->UserType =& ClassRegistry::init('UserType');
	}

	function testUserTypeInstance() {
		$this->assertTrue(is_a($this->UserType, 'UserType'));
	}

	function testUserTypeFind() {
		$this->UserType->recursive = -1;
		$results = $this->UserType->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('UserType' => array(
			'id' => 1,
			'title' => 'Lorem ipsum dolor sit amet',
			'privilage' => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>